@import '../global.less';

.btn,
button {
  display: inline-block;
  padding: 9px 20px;
  margin: 10px auto;
  line-height: 15px;
  color: #fff;
  text-align: center;
  font-size: @font-size;
  cursor: pointer;
  background-color: @base-color;
  border: 1px solid @base-color;
  border-radius: @radius;  

  &:focus,
  &:hover {
    opacity: .75;
  }
}
.el-form {
  .btn,
  button {
    display: block;
  }
}

.btn-cancel,
.btn-reset {
  color: @font-color;
  background-color: #fff;
  border-color: @border-color;
}

.btn-delete {
  background-color: @red-color;
  border-color: @red-color;
}

.btn-disable {
  cursor: not-allowed;
  color: @info-color;
  background-color: @bg-color;
  border-color: @border-color;
}

.btn-upload {
  padding: 6px 12px;
  color: @font-color;
  background-color: #fff;
  border-color: @border-color;

  .i-upload {
    color: @dark-color;
  }
}

.btn-loading {
  opacity: .85;

  &::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: rgba(255, 255, 255, .9);
    border-radius: 100%;
    animation: rotation .6s infinite linear;
  }
}
